package com.ylr.blog.common.enums;

import com.ylr.base.common.interfaces.BaseResultEnum;
import lombok.AllArgsConstructor;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-19 16:11:37
 * className: BlogResultEnum
 * version: 1.0
 * description:
 */
@AllArgsConstructor
public enum BlogResultEnum implements BaseResultEnum {

    BLOG_STATUS_FAIL(400, "博客状态错误"),
    DELETE_BLOG_SPACE_FAIL(400, "待删除空间包含子空间，请删除子空间后再重试"),
    DELETE_BLOG_SPACE_FAIL2(400, "待删除空间包含博客，请整理博客后再重试"),
    ;

    /**
     * 状态码
     */
    private final Integer code;

    /**
     * 回复消息
     */
    private final String msg;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
